.scale-control{
    border: 1px solid #555;
    position: absolute;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.scale-control-point{
    position: absolute;
    width: 8px;
    height: 8px;
    background: #82b1ea;
    border: 1px solid #555;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.scale-control-top-left{
    top: -4px;
    left: -4px;
    cursor: nw-resize;
}
.scale-control-top-center{
    top: -4px;
    left: 0;
    right: 0;
    margin: 0 auto;
    cursor: n-resize;
}
.scale-control-top-right{
    top: -4px;
    right: -4px;
    cursor: ne-resize;
}
.scale-control-mid-left{
    left: -4px;
    top: 0;
    bottom: 0;
    margin: auto 0;
    cursor: w-resize;
}
.scale-control-mid-center{
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    cursor: move;
}
.scale-control-mid-right{
    right: -4px;
    top: 0;
    bottom: 0;
    margin: auto 0;
    cursor: e-resize;
}
.scale-control-bottom-left{
    left: -4px;
    bottom: -4px;
    cursor: ne-resize;
}
.scale-control-bottom-center{
    bottom: -4px;
    left: 0;
    right: 0;
    margin: 0 auto;
    cursor: n-resize;
}
.scale-control-bottom-right{
    bottom: -4px;
    right: -4px;
    cursor: nw-resize;
}
.scale-control-unselect{
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}